GIT and GitHub

and intergration with R and IDEs (e.g. Rstudio)

Liberty Mlambo

Introduction

Why use GIT and GitHub to collaborate?

Git

Git

Open source

Tracks file changes

Branch based non-linear workflows

IDE intergration

Speed of work

Local environment

GitHub

Fremium Repository based

  • Fremium cloud based version control using Git
  • Repository based (Projects)

Built-in security

File History Tracking

Unlimited Public/ Private Repositories

Track issues and task progress

Track issues and task progress

Lessons learnt

Cloud storage and collaboration very important and a key focus area

Reproducibility through version tracking is fundamental

Choose tools carefully to avoid security lapses

CTRL + ALT + SHIFT+F (Git Urgent)

Practical demonstration

Assumptions and Requirements

Assumptions

  • Computer (Mac, Windows, Linux, etc..) with administrative privileges
  • Software download and installation experience

Requirements

Github desktop download

Github desktop documentation

Git glossary

command Description
git init git init turns any directory into a Git repository. 1
git add <path> The git add command adds new or changed files in your working directory to the Git staging area. 2
git commit and git commit message git commit -m "descriptive commit message" creates a commit, which is like a snapshot of your repository. These commits are snapshots of your entire repository at specific times. You should make new commits often, based around logical units of change. Over time, commits should tell a story of the history of your repository and how it came to be the way that it currently is. Commits include lots of metadata in addition to the contents and message, like the author, timestamp, and more.3

Git